using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class ReplenishOrderConfiguration : EntityTypeConfiguration<ReplenishOrder>
    {
        public ReplenishOrderConfiguration()
        {
            Property(g => g.ReplenishOrderID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
            Property(g => g.Number).IsOptional();
            Property(g => g.Prio).IsOptional();
            Property(g => g.RequestedAmount).IsOptional();
            Property(g => g.SourceLocationName).IsOptional();
            Property(g => g.State).IsOptional();
            Property(g => g.OperatorID).IsRequired();
            Property(g => g.StockUnitID).IsRequired();
            Property(g => g.RequestedLocationID).IsRequired();
            Property(g => g.ItemDataID).IsOptional();
            Property(g => g.ClientID).IsOptional();
            Property(g => g.RequestedRackID).IsRequired();
            Property(g => g.LotID).IsRequired();
            Property(g => g.DestinationID).IsRequired();
        }
    }
}
